<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
    />
    <title>抖音</title>
    <link rel="stylesheet" href="video.css" />
  </head>
  <body>
    <div class="viewport">
      <div class="header">
        <a href="javascript:void(0)"></a>
        <ul>
          <li>
            <p></p>
            关注
          </li>
          <li>
            <p></p>
            推荐
          </li>
        </ul>
      </div>

      <div class="video">
        <!--中部视频部分-->
        <video loop class="video1">
          <source src="./video1.mp4" type="video/mp4" />
        </video>

        <ul class="r_click">
          <!--视频右侧点击按钮-->
          <li class="autou"><div class="diff"></div></li>
          <li class="like">
            <div class="heart">
                <div class=" heart-l"></div>
                <div class=" heart-r"></div>
            </div>
            <p class="count">0</p>
          </li>
          <li class="comment"></li>
          <li class="share"></li>
        </ul>
        <ul class="bottom">
          <!--下方短视屏标题信息-->
          <li class="message">
            <h3>@支付宝那些事</h3>
            <p class="last">
              第35集 | <span> #程序员</span>程序员的基本礼仪了解一下，笑哭
            </p>
          </li>
          <li class="r_cd">
            <img src="./img/ph1.jpg" alt="" />
          </li>
        </ul>
        <div class="com">
          <div class="com-heard">
            <p><span> 103</span>条评论</p>
            <div class="exit">x</div>
          </div>
          <ul class="coms">
            <li>
              <img src="./img/ph0.jpg" alt="" />
              <div class="ping">
                <p class="name">松木</p>
                <p class="discuss">
                  爱了爱了阿斯顿发送到发送到发送到发送到发斯蒂芬斯蒂芬~
                  <span>05-15</span>
                </p>
              </div>
              <div class="praise">
                <div class="heart-s"></div>
                <p>0</p>
              </div>
            </li>
          </ul>
          <form action="#">
            <input
              type="text"
              name="textname"
              class="bala"
              value=""
              placeholder="来说点啥"
            />
            <input type="button" value="发送" class="biu" />
          </form>
        </div>
      </div>
    </div>
    <script>
      function gethtmlfontSize() {
        var html = document.getElementsByTagName("html")[0];
        var htmlWidth =
          document.documentElement.clientWidth || document.body.clinetWidth;
        html.style.fontSize = 20 * (htmlWidth / 1080) + "px";
      }

      document.addEventListener("DOMContentLoaded", gethtmlfontSize);
      window.addEventListener("resize", gethtmlfontSize);
    </script>
    <script src="./data.js"></script>
    <script src="./video.js"></script>
  </body>
</html>
